package com.system.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.system.user.entity.WaterEntity;
import com.system.user.entityVO.WaterVO;

import java.util.List;

/**
 * @author HYXK
 * @email null@qq.com
 * @date 2020-03-27 11:55:11
 */
public interface WaterService {

    List<WaterEntity> selectAll();

    List<WaterEntity> selectBySiteOrNumber(WaterEntity waterEntity);

    List<WaterVO> findWaterVOByUId(Integer uId, Integer number);

    List<WaterVO> findAllByBNumber(String bNumber, String createTime);

    String findSite(String bNumber);

    boolean addWater(WaterEntity water) throws Exception;

    boolean updateWater(WaterEntity water);

    boolean delete(Integer id);
}
